import {createBrowserRouter} from 'react-router-dom'
 import App from '../App'
 import Home from '../pages/home/Home'
 import Gl from '../pages/gl/Gl'
 import Sq from '../pages/sq/Sq'
 import My from '../pages/my/My'
 import City from '../pages/city/City'
 import Login from '../pages/login/Login'
 const router=createBrowserRouter([
    {
        path:'/',
        element:<App></App>,
        children:[
            {
                index:true,element:<Home></Home>
            },
            {
                path:'home',
                element:<Home></Home>
            },
            {
                path:'gl',
                element:<Gl></Gl>
            },
            {
                path:'sq',
                element:<Sq></Sq>
            },
            {
                path:'my',
                element:<My></My>
            }
        ]
    },
    {
        path:'/city',
        element:<City></City>
    },
    {
        path:'/login',
        element:<Login></Login>

    }
 ])
 export default router